<?php /** * Created by PhpStorm. * User: L丶y * Date: 2017/6/19 * Time: 21:42 */
namespace Main\Model;

use Think\Model;

class AuthModel extends Model
{
    public function getAuth($where = 'auth_pid=0')
    {
        return $this->where($where)->select();
    }
    public function getList($firstRow,$listRows)
    {
        return $this->field('auth_id,auth_name,auth_pid,auth_controller,auth_action,is_menu')->limit($firstRow.','.$listRows)->select();
    }
}
